<?php

namespace app\controller;

use app\BaseController;

class Login extends BaseController
{
    public function login(): void
    {
        $param = $this->request->post();
        $param['pwd'] =md5($param['pwd']);
        $check = (new \app\model\Login())->checkLogin($param);
        echo $check?'账号密码正确':'账号或者密码错误';
    }
}